package com.lemon.components.tmp.download;

import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.FlowLayout;

import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JProgressBar;

public class DownloadWindow extends JDialog {
	
	private static final long serialVersionUID = -1813929422071131321L;
	private JProgressBar progressBar;
	private JProgressBar progressBar_1;
	
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			@Override
			public void run() {
				try {
					DownloadWindow dialog = new DownloadWindow();
					dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
					dialog.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the dialog.
	 */
	public DownloadWindow() {
		setTitle("下载进度");
		setType(Type.UTILITY);
		setModalityType(ModalityType.APPLICATION_MODAL);
		setResizable(false);
		setBounds(100, 100, 486, 88);
		getContentPane().setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		JLabel lblNewLabel = new JLabel("所有文件");
		getContentPane().add(lblNewLabel);
		
		progressBar = new JProgressBar();
		progressBar.setStringPainted(true);
		progressBar.setPreferredSize(new Dimension(400, 20));
		getContentPane().add(progressBar);
		
		JLabel lblNewLabel_1 = new JLabel("单个文件");
		getContentPane().add(lblNewLabel_1);
		
		progressBar_1 = new JProgressBar();
		progressBar_1.setStringPainted(true);
		progressBar_1.setPreferredSize(new Dimension(400, 20));
		getContentPane().add(progressBar_1);

	}

	public JProgressBar getProgressBar() {
		return progressBar;
	}

	public void setProgressBar(JProgressBar progressBar) {
		this.progressBar = progressBar;
	}

	public JProgressBar getProgressBar_1() {
		return progressBar_1;
	}

	public void setProgressBar_1(JProgressBar progressBar_1) {
		this.progressBar_1 = progressBar_1;
	}

}
